export interface AuthStateInterface {
  user: string,
  icon: string,
  pages: any[],
  history?: History
}

/**
 * 登录
 */
export const LOGIN_TYPE = 'LOGIN_TYPE'
export interface LoginDispatch {
  type: typeof LOGIN_TYPE,
  value: {
    user: string,
    icon: string,
    pages: Array<any>
  }
}

/**
 * 退出登录
 */
export const LOGOUT = 'LOGOUT'
export interface Logout {
  type: typeof LOGOUT
}

export type AuthActionTypes = LoginDispatch | Logout